import threading
import time

from utils.config import config
from utils.log import logger
from utils.Remind import set_alarm
from utils.config_file import config_obj

def Start_Run():
    while config.start_Flag:
        set_alarm(
            config_obj.config_text['Time_H'],
            config_obj.config_text['Time_M'],
            config_obj.config_text['Time_MSG']
        )
        time.sleep(1)

def main():
    t_run = threading.Thread(target=Start_Run)
    t_run.start()
    return 1

if __name__ == '__main__':
    main()